/**
 * Copyright 2011 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@googlered: #e21d1d;
@googleyellow: #f7cc22;
@googlegreen: #419a0c;
@googleblue: #2666cc;
@googledarkblue: #1b4568;
@googlepurple: #551a8b;

.border-radius (@radius: 10px) {
  -webkit-border-radius: @radius;
  -moz-border-radius: @radius;
  border-radius: @radius;
}

.border-radius-all (@tleft: 10px, @tright: 10px, @bright: 10px, @bleft: 10px) {
  -webkit-border-radius: @tleft @tright @bright @bleft;
  -moz-border-radius: @tleft @tright @bright @bleft;
  border-radius: @tleft @tright @bright @bleft;
}

.box-sizing (@type: border-box) {
  -webkit-box-sizing: @type;
  -moz-box-sizing: @type;
  box-sizing: @type;
}

.background-size(@val: 100%) {
  -webkit-background-size: @val;
  -moz-background-size: @val;
  -o-background-size: @val;
  background-size: @val;
}

.display-box() {
  display: -webkit-box;
  display: -moz-box;
  display: -o-box;
  display: -ms-box;
  display: box;
}

.box-pack(@val: center) {
  -webkit-box-pack: @val;
  -moz-box-pack: @val;
  -o-box-pack: @val;
  box-pack: @val;
}

.box-align(@val: center) {
  -webkit-box-align: @val;
  -moz-box-align: @val;
  -o-box-align: @val;
  box-align: @val;
}

.box-shadow(@val: none) {
  -webkit-box-shadow: @val;
  -moz-box-shadow: @val;
  -o-box-shadow: @val;
  box-shadow: @val;
}

.box-flex(@val: 0) {
  -webkit-box-flex: @val;
  -moz-box-flex: @val;
  -o-box-flex: @val;
  box-flex: @val;
}

.box-orient(@val: horizontal) {
  -webkit-box-orient: @val;
  -moz-box-orient: @val;
  -o-box-orient: @val;
  box-orient: @val;
}

.user-select(@val: none) {
  -webkit-user-select: @val;
  -moz-user-select: @val;
  -o-user-select: @val;
  user-select: @val;
}

.text-shadow(@val: none) {
  -webkit-text-shadow: @val;
  -moz-text-shadow: @val;
  -o-text-shadow: @val;
  text-shadow: @val;
}

.text-outline(@size: none, @color: #000) {
  -moz-text-outline: @size @size @color;
  -webkit-text-stroke: @size @color;
  text-outline: @size @size @color;
}

.transform(@val: none) {
  -webkit-transform: @val;
  -moz-transform: @val;
  -o-transform: @val;
  transform: @val;
}

.transition(@val: none) {
  -webkit-transition: @val;
  -moz-transition: @val;
  transition: @val;
}

.border-image(@val: none) {
  -moz-border-image: @val;
  -webkit-border-image: @val;
  border-image: @val;
}

.border-width(@val: none) {
  -moz-border-width: @val;
  -webkit-border-width: @val;
  border-width: @val;
}

.background-linear-gradient(@dir: left, @from: black, @to: white) {
  background-image: -moz-linear-gradient(@dir, @from, @to);
  background-image: -webkit-linear-gradient(@dir, @from, @to);
}

.text-overflow(@val: none) {
  -moz-text-overflow: @val;
  -webkit-text-overflow: @val;
  text-overflow: @val;
}
/*******************************************************************************
 * FONTS
 ******************************************************************************/
@font-face {
  font-family: 'Droid Serif';
  font-style: normal;
  font-weight: normal;
  src: local('Droid Serif'), url('../fonts/DroidSerif.ttf') format('truetype');
}
@font-face {
  font-family: 'Neuton';
  font-style: normal;
  font-weight: normal;
  src: local('Neuton'), url('../fonts/Neuton.ttf') format('truetype');
}
@font-face {
  font-family: 'Molengo';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/Molengo-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/Lobster.ttf') format('truetype');
}
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/Inconsolata.ttf') format('truetype');
}
@font-face {
  font-family: 'Josefin Sans Std Light';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/JosefinSansStd-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'OFL Sorts Mill Goudy TT';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/OFLGoudyStMTT.ttf') format('truetype');
}
@font-face {
  font-family: 'Yanone Kaffeesatz';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/YanoneKaffeesatz-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Permanent Marker';
  font-style: normal;
  font-weight: normal;
  src: local('../fonts/Permanent Marker.woff'), local('../fonts/PermanentMarker.woff'), url('../fonts/PermanentMarker.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: normal;
  src: local('../fonts/Ubuntu-Regular.woff'), url('../fonts/Ubuntu-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Cabin Sketch';
  font-style: normal;
  font-weight: bold;
  src: local('../fonts/CabinSketch-Bold.woff'), url('../fonts/CabinSketch-Bold.woff') format('woff');
}
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 400;
  src: local('../fonts/Cabin-Regular.woff'), url('../fonts/Cabin-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('../fonts/Lato-Regular.woff'), url('../fonts/Lato-Regular.woff') format('woff');
}

/*******************************************************************************
 * BACKGROUND STYLES
 ******************************************************************************/
#bg-white {
  background: #fff;
}
#bg-black {
  background: #000;
}
#bg-pattern {
  background: url('/images/bgs/tecno2.jpg');
  .background-size(inherit);
}
#bg-google-blue {
  .background-size(contain);
  background: url('/images/bgs/bg1.jpg') bottom no-repeat, @googleblue;
}
#bg-google-darkblue {
  .background-size(contain);
  background: url('/images/bgs/g_background.png') bottom no-repeat, @googledarkblue;
}
#bg-google-green {
  .background-size(contain);
  background: url('/images/bgs/g_background.png') bottom no-repeat, @googlegreen;
}
#bg-google-yellow {
  .background-size(contain);
  background: url('/images/bgs/f2.jpg') bottom no-repeat, @googleyellow;
}
#bg-google-red {
  .background-size(contain);
  background: url('/images/bgs/thanks.jpg') bottom no-repeat, @googlered;
}
#bg-blueprint {
  /*http://www.flickr.com/photos/wendelboe/5474783840/*/
  background: url('/images/bgs/blueprint.jpg') no-repeat;
}
#bg-binary {
  background: url('/images/fullslides/binary.jpg') no-repeat;
  .background-size(cover);
}
#bg-file {
  background: url('/images/fullslides/storage.jpg') no-repeat;
  .background-size(cover);
}
#bg-clutter {
  background: url('/images/fullslides/clutter.jpg') no-repeat;
  .background-size(cover);
}
#bg-filecabinets {
  background: url('/images/fullslides/filecabinets.jpg') no-repeat;
  .background-size(cover);
}
#bg-audio {
  background: url('/images/fullslides/fondo3.jpg') no-repeat;
  .background-size(cover);
}
#bg-degree {
  background: -webkit-linear-gradient(top, midnightblue, midnightblue);
  .background-size(cover);
}
#bg-declarative {
  background: url('/images/fullslides/fondo2.jpg') no-repeat bottom center;
  .background-size(cover);
}
#bg-drawline {
  background: url('/images/fullslides/drawline.jpg') no-repeat top right;
  .background-size(cover);
}

/*******************************************************************************
 * PRESENTATION STYLES
 ******************************************************************************/
::selection {
  color: navy;
  background-color: #ffcc00;
  text-shadow: none;
}

body {
  font: 30px Arial;
  background: #000;
}

.with-notes .note {
  height: 170px;
  margin-top: 50px;
}

.note {
  -webkit-transition: height 0.5s;
  height: 0;
  width: 110%;
  overflow: hidden;
  margin: 0 0 0 -45px;
  background: rgba(252, 204, 0, 0.1);

  > section {
    -webkit-box-shadow: #999 0px 0 5px inset, #999 0px 2px 5px inset;
    font-size: 14px;
    height: 141px;
    padding: 15px 50px;
    text-shadow: rgba(0, 0, 0, 0.2) 0 2px 5px;
  }
}

header {
  font: 40px 'Cabin', Arial;
  color: #0054AB;
  text-shadow: white 0px 2px 0px, rgba(0, 0, 0, 0.2) 0 2px 5px;
}

section {
  font: 30px 'Lato', 'Ubuntu', Arial;
  font-weight: normal;
  color: #3f3f3f;
  text-shadow: white 0px 1px 0px, rgba(0, 0, 0, 0.2) 0 2px 5px;
}

[data-build] {
  > * {
    -webkit-transition: opacity 0.5s ease-in-out 0.2s;
    -moz-transition: opacity 0.5s ease-in-out 0.2s;
    -o-transition: opacity 0.5s ease-in-out 0.2s;
 }

  > section[data-auto] {
    -webkit-transition: opacity 0.5s ease-in-out 1s;
    -moz-transition: opacity 0.5s ease-in-out 1s;
    -o-transition: opacity 0.5s ease-in-out 1s;
  }

  > *.to-build {
    opacity: 0;
  }
}

.presentationCounter {
  color: rgba(0, 0, 0, 0.7);
  text-shadow: 0 1px 0px rgba(255, 255, 255, 0.4);
  font: 40px 'Molengo', 'Yanone Kaffeesatz';
  position: relative;
  top: 35%;
  width: 100%;
  text-align: center;
  .user-select(none);
}
.presentationCounter progress {
  .transform(e(scale(0.5)));
  -webkit-transform-origin: center top;
}

.slide .counter {
  color: #555;
  position: absolute;
  right: 0px;
  left: 0;
  bottom: 15px;
  height: 15px;
  display: block;
  font-size: 20px;
  padding-top: 15px;
  background: url(../images/bgs/footer_azul.jpg) repeat-x left top;
  
}

.slide.image {

  section {
    background-color: rgba(255, 255, 255, 0.2);
    .border-radius(10px);
    color: white;
    line-height: 1.1em;
    margin: 0;
    padding: 10px;
    display: block;
    position: absolute;
    text-shadow: rgba(0, 0, 0, 0.2) 0 2px 5px;
    max-width: 100%;

    &.bottomLeft {
      bottom: 60px;
      left: 0px;
      .border-radius-all(0, 10px, 10px, 0);
    }

    &.bottomRight {
      bottom: 60px;
      right: 0px;
      .border-radius-all(10px, 0, 0, 10px);
    }

    &.topLeft {
      top: 60px;
      left: 0px;
      .border-radius-all(0, 10px, 10px, 0);
    }

    &.topRight {
      top: 60px;
      right: 0px;
      .border-radius-all(10px, 0, 0, 10px);
    }

    &.topWide {
      top: 60px;
      right: 0px;
      left: 0px;
      padding-left: 1em;
    }

    &.bottomWide {
      bottom: 60px;
      right: 0px;
      left: 0px;
      padding-left: 1em;
    }

    &.right {
      text-align: right;
      padding-right: 1em;
    }

    &.dark {
      background-color: rgba(1, 1, 1, 0.7);
    }
  }

  h1, h2 {
    font-size: 120%;
    font-family: 'Permanent Marker';
    text-shadow: black 0 2px 5px;
  }

  .credit {
    position: absolute;
    bottom: 10px;
    right: 0px;
    display: block;
    background-color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
    .border-radius-all(10px, 0, 0, 10px);
    padding: 3px 10px 3px 10px;
    color: white;

    a {
      color: #fff;
    }
  }
}

.slide.image .counter,
.slide.transparent .counter,
#slide-title .counter {
  display: none;
}

.slide.iframe iframe {
  border: 1px solid #ccc;
  width: 100%;
  height: 75%;
  .box-sizing;
}
/*******************************************************************************
 * GENERIC STYLES
 ******************************************************************************/
h2 {
 margin: 0 0 10px 0;
 padding: 0;
 color: #0054ab;
}

button, input[type='submit'], select {
  font: 18px Futura, 'Century Gothic', AppleGothic, Arial, sans-serif;
  background: -webkit-gradient(linear, 0% 40%, 0% 70%, from(#F9F9F9), to(#E3E3E3));
  border: 1px solid #ccc;
  .border-radius(3px);
  margin: 0 8px 0 0;
  color: black;
  padding: 4px 8px 3px;
  outline: none;
  white-space: nowrap;
  vertical-align: middle;
  .user-select(none);
  cursor: pointer;
  .box-sizing(border-box);
}

input[type='radio'] {
  .transform(e(scale(2.0)));
  vertical-align: middle;
  margin-right: 5px;
}

button:hover,
input[type='submit']:hover {
  border: 1px solid #939393;
}

button:active,
input[type='submit']:active {
  background: -webkit-gradient(linear, 0% 40%, 0% 70%, from(#E3E3E3), to(#F9F9F9));
}

input[type='text'], input[type='number'], textarea {
  font-size: 105%;
  padding: 15px;
  .border-radius(8px);
  border: 1px solid #ccc;
  -webkit-box-shadow: 0 3px 10px #ccc inset;
  outline: none;
}

input[type='text'],
input[type='number'] {
  padding: 15px;
  vertical-align: middle;
  font-size: 100%;
}

input[type="file"].hidden-input {
  /* display:none on the input won't trigger the click event in WebKit.
     Setting visibility to hidden and width 0 works.*/
  visibility: hidden;
  width: 0;
  height: 0;
  position: absolute;
}

[contenteditable]:hover,
[contenteditable]:focus {
  outline: none;
  border: 2px dashed #ccc;
  .border-radius(5px);
  color: black;
}

a {
  color: #00d;
  text-decoration: none;
  text-shadow: rgba(0, 0, 0, 0.4) 1px 1px 2px;
  -webkit-text-stroke: 1px rgba(255,255,255, 0.5);
}
a strong {
  color: #00d;
  font-weight: bold;
}

p,
ul {
  margin: 10px 0;
  padding: 5px;
}

ul, ol {
  margin: 0;
}

li {
  margin: 0 0 0 30px;
  padding: 5px;
}

strong {
  color: #000;
}

tspan {
  text-shadow: none;
}

.clear {
  clear: both;
}

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

.clickable {
  cursor: pointer;
  border: 3px solid transparent;
  .border-radius(30px);
  padding: 10px;
  -webkit-transition-property: all;
  -webkit-transition-duration: 0.2s;
  -webkit-transition-timing-function: ease-in-out;

  -moz-transition-property: all;
  -moz-transition-duration: 0.2s;
  -moz-transition-timing-function: ease-in-out;

  -o-transition-property: all;
  -o-transition-duration: 0.2s;
  -o-transition-timing-function: ease-in-out;

  &:hover {
    border-color: 3px solid #36b;
  }
}

pre {
  font: 25px Inconsolata;
  color: #000;
  text-align: left;
  padding: 10px 20px;
  .border-radius(10px);
  background: rgba(255, 204, 0, 0.05);
  border: 2px solid rgba(255, 204, 0, 0.3);
  margin: 10px 0;
  /*text-shadow: rgba(0, 0, 0, 0.2) 0 2px 5px;*/
}

.highlight-code pre > * {
  opacity: 0.25;
  -webkit-transition: opacity 0.5s ease-in;
  -moz-transition: opacity 0.5s ease-in;
  -o-transition: opacity 0.5s ease-in;
}

.highlight-code pre b,
.highlight-code pre strong {
  opacity: 1;
}

.key {
  font: 25px 'Molengo';
  line-height: 30px;
  color: #000;
  display: inline-block;
  padding: 6px 10px 3px 10px;
  text-shadow: none;
  letter-spacing: 0;
  bottom: 10px;
  position: relative;
  .border-radius(10px);
  background: #fff;
  -webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 2px 5px;
  vertical-align: sub;
}

.todo {
  background: #d00;
  .border-radius(10px);
  padding: 5px;
  color: #fff;
}

.callout {
  text-align: center;
  font: 70px 'Molengo';
  line-height: 65px;
  width: 80%;
  margin: 0 auto;
  padding: 10px 20px 20px;
}

.disclaimer {
  font: 13px Arial;
  color: #666;
}

.shadowed {
  box-shadow: 0 15px 10px rgba(0,0,0,0.5);
}

img.shadowed {
  .border-radius(20px);
}

img.cutout {
  box-shadow: 0 15px 10px rgba(0,0,0,0.5);
  border: 1px solid #000;
  margin: 10px;
}

.pulse {
  -webkit-animation-name: pulse;
  -webkit-animation-duration: 6s;
  -webkit-animation-timing-function: ease-in-out;
  -webkit-transform-origin: 50% 50%;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
}

.new {
  background: #ffcc00;
  display: inline-block;
  padding: 5px 10px 8px 10px;
  .border-radius(50%);
  color: white;
  font-weight: bold;
  font-size: 75%;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.4);
  -webkit-text-stroke: 1px 1px solid black;
}
.current .new {
  -webkit-animation-name: jitter;
  -webkit-animation-duration: 2s;
  -webkit-animation-timing-function: ease-in-out;
  -webkit-transform-origin: 50% 50%;
  -webkit-animation-iteration-count: infinite;
}

.filetheme {
  color: @googleblue;
}
.graphicstheme {
  color: @googlered;
}
.audiotheme {
  color: @googleyellow;
}

.theme1, .theme2, .theme3, .theme4, .theme5 {
  display: inline-block;
  padding: 3px 5px;
  border-radius: 5px;
  color: #fff;
  .text-shadow(0 1px 4px #000);
}
header {
  vertical-align: top;
  .display-box();
  .box-align(center);

  .theme1, .theme2, .theme3, .theme4, .theme5 {
    display: block;
    margin-right: 10px;
    font-size: 60%;
  }
}
.theme1 {
  background: @googleblue;
}
.theme2 {
  background: @googlered;
}
.theme3 {
  background: @googleyellow;
}
.theme4 {
  background: @googlegreen;
}
.theme5 {
  background: @googlepurple;
}
/*******************************************************************************
 * BLUEPRINT STYLES
 ******************************************************************************/
.blueprint {
  h1, header {
    font-family: 'Cabin Sketch', 'Ubuntu', Arial;
  }

  > * {
    color: white;
    text-shadow: black 0 2px 5px;
  }

   a {
    color: white;
  }

  .clickable {
    display: inline-block;
    border-color: white;
    .border-radius(15px);
    background-color: rgba(255,255,255,0.1);

    &:hover {
      .border-radius(30px);
    }
  }
}
/*******************************************************************************
 * GOOGLE SEGUE STYLES
 ******************************************************************************/
.segue {
  h1 {
    text-shadow: black 0 2px 5px;
    font: 80px 'Cabin', 'Ubuntu', Arial;
    color: #fff;
    margin: 0px;
    padding: 0px;
  }

  p {
    text-shadow: black 0 2px 5px;
    color: #fff;
  }
}
/*******************************************************************************
 * SPLASH ANIMATION STYLES
 ******************************************************************************/
#slide-loading {
  background: black;

  iframe {
    border: none;
    height: 600px;
    width: 900px;
    overflow: hidden;
    .box-sizing;
  }
}
/*******************************************************************************
 * TITLE STYLES
 ******************************************************************************/
#slide-title h1 {
  font-family: 'Cabin Sketch';
  font-size: 55px;
  text-shadow: white 0px 2px 0px, rgba(0, 0, 0, 0.8) 0 0 10px;
}
/*******************************************************************************
 * BROWSER SUPPORT STYLES
 ******************************************************************************/
.browser-support {
  -webkit-transform-style: e("preserve-3d");
  -webkit-perspective: 1000;
  -moz-transform-style: e("preserve-3d");
  -moz-perspective: 1000;

  img {
    height: 198px;
    width: 249px;
    margin: 0 -55px 0 -55px;
    opacity: 0.3;
    position: relative;
    .transform(rotateX(45deg));

    &:nth-of-type(1),
    &:nth-of-type(3),
    &:nth-of-type(5) {
      top: -100px;
    }

    &:nth-of-type(2),
    &:nth-of-type(4) {
      top: 125px;
    }

    &.supported {
      opacity: 1;
      z-index: 1;
      .transform(rotateX(0));
    }
    
    &.partial-support {
      opacity: 0.5;
    }
  }
}
/*******************************************************************************
 * PREFLIGHT
 ******************************************************************************/
#slide-preflight .explanation {
  font-size: 75%;
  margin-left: 1.4em;
}
#slide-preflight .feature {
  margin-top: 10px;
}
/*******************************************************************************
 * FILEREADER
 ******************************************************************************/
#filereader-files {
  border: 1px solid #ccc;
  padding: 5px;
  .border-radius(5px);
  background-color: white;
}
#filereader-list {
   font-size: 18px;
 }
#filereader-list ul {
  margin: 0;
}
 #filereader-list li {
   list-style: none;
   float: left;
   margin: 0 5px 0 0;
   padding: 2px 2px 2px 20px;
   background: url(../images/icons/file.gif) left center no-repeat;
 }
/*******************************************************************************
 * DRAG AND DROP
 ******************************************************************************/
#dropzone {
  height: 100px;
  width: 600px;
  .border-radius(10px);
  border: 2px dashed black;
  font-family: 'Molengo', Helvetica, sans-serif;
  text-align: center;
}
#dropzone.rounded {
  -webkit-box-shadow: inset 0px 0px 50px #777;
  -moz-box-shadow: inset 0px 0px 50px #777;
  box-shadow: inset 0px 0px 50px #777;
}
#thumbnails img {
  background-color: white;
  border: 1px solid #ccc;
  margin-right: 10px;
  -webkit-transition: -webkit-transform 0.2s ease-in, margin 0.7s ease-in-out;
  position: relative;
  z-index: 5;
}
#thumbnails img:hover {
  .transform(scale(3.0) rotate(10deg));
  -webkit-transform-origin: 50% 75px;
  margin: 0 100px;
}
/*******************************************************************************
 * CSS PROPERTIES
 ******************************************************************************/
#slide-cssprops section {
  position: relative;
  width: 100%;
  height: 100%;

  * {
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    display: block;
    width: 250px;
    color: #000;
    .text-shadow(none);
    padding: 10px;
  }

  .demo-text-shadow {
    .text-shadow(4px 4px 3px @googleblue);
    left: 50px;
    top: 50px;
  }
  .demo-text-outline {
    color: #fff;
    .text-outline(1px, #000);
    left: 10px;
    top: 300px;
  }
  .demo-box-shadow {
    display: inline-box;
    border: 1px solid #000;
    .box-shadow(5px 5px 5px #000);
    left: 150px;
    top: 170px;
  }
  .demo-border-radius {
    display: inline-box;
    border: 1px solid #000;
    .border-radius(20px);
    left: 550px;
    top: 100px;
  }
  .demo-gradient {
    left: 300px;
    top: 280px;
    color: #fff;
    .background-linear-gradient(left, green, yellow);
  }
  .demo-transform {
    .transform(rotate(45deg) skew(45deg));
    left: 600px;
    top: 250px;
    text-align: center;
  }
  .demo-transition {
    left: 200px;
    top: 350px;
    .transition(left 2s ease-in-out);
  }
  .demo-border-image {
    .border-image(url('../images/border-image.png') 27 27 27 27 round stretch;
    .border-width(27px);
    left: 100px;
    bottom: 80px
  }
  .demo-font-face {
    font-family: 'Lobster';
    right: 0;
    top: 200px;
    text-align: right;
  }
  .demo-text-overflow {
    display: block;
    .text-overflow(ellipsis);
    white-space: nowrap;
    overflow: hidden;
    width: 220px;
    border: 1px solid #000;
    bottom: 100px;
    right: 130px;
  }
}
/*******************************************************************************
 * SVG SIMPLE
 ******************************************************************************/
#slide-svg-simple .content > * {
  display: inline;
}
/*******************************************************************************
 * CSS ANIMATION
 ******************************************************************************/
#slide-cssanimation .logo {
  -webkit-animation: e("chromelogo-spin 12s infinite cubic-bezier(0.9, 0.1, 0.1, 0.9)");
  background: url('../images/browser_logos/chrome_new_256.png') no-repeat center center;
  .background-size(contain);
  width: 200px;
  height: 200px;
}
#slide-tween .logo {
  background: url('../images/browser_logos/chrome_new_256.png') no-repeat center center;
  .background-size(contain);
  width: 300px;
  height: 300px;
  margin: 40px;
}
#slide-tween .columns {
  .display-box();
  .box-orient(horizontal);
  text-align: right;
}
#slide-tween canvas {
  display: block;
}
#slide-tween pre {
  display: inline-block;
}
#slide-tween select {
  display: inline;
}
/*******************************************************************************
 * CSS3D SIMPLE
 ******************************************************************************/
#slide-3dtransforms .container {
  display: inline-block;
  width: 180px;
  height: 180px;
  margin: 0 20px;
  -webkit-perspective: 600;
  -moz-perspective: 600;
  -o-perspective: 600;
  perspective: 600;
}
#slide-3dtransforms .container {
  .panel {
    position: absolute;
    background: rgba(100,100,200,1.0);
    .border-radius(40px);
    font: 160px Arial;
    padding: 10px;
    text-align: center;
  }
  .three, .four {
    .transform(rotateY(60deg));
  }
  .two > span, .three > span, .four > span {
    -webkit-transform-origin: 50% 0;
    .transform(rotateX(45deg));
  }
  .four {
    -webkit-transform-style: e("preserve-3d");
  }
}
#slide-3dtransforms .panel > span {
  color: #000;
  display: block;
  height: 160px;
  width: 160px;
  background: rgba(100,200,100,1.0);
  .border-radius(30px);
}
/*******************************************************************************
 * CSS3D ANIMATION
 ******************************************************************************/
#css3d-wrap {
  -webkit-perspective: 1500;
  -webkit-transform-style: e("preserve-3d");
  -moz-perspective: 1500;
  -moz-transform-style: e("preserve-3d");
}
#css3d-wrap .containerwrap {
  height: 300px;
}
#css3d-wrap .container {
  position: relative;
  top: 30px;
  margin: 0 auto;
  width: 200px;
  -webkit-transform-style: e("preserve-3d");
  -webkit-animation: e("css3d-spin 8s infinite linear");
  -moz-transform-style: e("preserve-3d");
  -moz-animation: e("css3d-spin 8s infinite linear");
}
#css3d-wrap .panel {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(100,100,200,0.3);
  .border-radius(40px);
  font: 180px Arial;
  text-align: center;
  -webkit-transform-style: e("preserve-3d");
  -moz-transform-style: e("preserve-3d");
}
#css3d-wrap .panel > span {
  color: #000;
  display: block;
  height: 200px;
  width: 200px;
  background: rgba(100,200,100,1.0);
  .border-radius(40px);
  -webkit-transform-origin: 50% 0;
  -moz-transform-origin: 50% 0;
  -webkit-transition: -webkit-transform 0.3s linear;
  -moz-transition: -moz-transform 0.3s linear;
}
#css3d-wrap .panel:hover > span {
  .transform(translateZ(10px) rotateX(120deg));
}
#css3d-wrap .one   { .transform(rotateY(0) translateZ(110px)); }
#css3d-wrap .two   { .transform(rotateY(90deg)  translateZ(110px)); }
#css3d-wrap .three { .transform(rotateY(180deg) translateZ(110px)); }
#css3d-wrap .four  { .transform(rotateY(270deg) translateZ(110px)); }
#css3d-wrap .logo  {
  opacity: 1.0 !important;
  background: url('../images/browser_logos/chrome_new_256.png');
  .background-size(contain);
  -webkit-animation: e("css3d-antispin 8s infinite linear");
  -moz-animation: e("css3d-antispin 8s infinite linear");
}
/*******************************************************************************
 * DEVICE ORIENTATION
 ******************************************************************************/
#slide-orientation .demo {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  position: relative;
}
#slide-orientation .demo > div {
  font: 190px Arial;
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 200px;
  color: transparent;
  opacity: 0.5;
  text-shadow: none;
}
#slide-orientation .demo > div.clone {
  -webkit-text-stroke: 4px #9ef;
  color: rgba(144, 240, 255, 0.3);
}
#slide-orientation .demo > div.orig {
  -webkit-text-stroke: 4px #f77;
  color: rgba(255, 105, 105, 0.3);
}
/*******************************************************************************
 * PROFILE
 ******************************************************************************/
#profile-slide section {
  .box-orient(horizontal);
  .display-box;
}
.profile {
  width: 300px;
  -webkit-transition: -webkit-transform 0.6s ease-out, opacity 1.0s ease-out;
  padding: 0 20px;
}
#profile-slide.out .profile:nth-child(even) {
  -webkit-transform: translateX(400px);
  opacity: 0;
}
#profile-slide.out .profile:nth-child(odd) {
  -webkit-transform: translateX(-400px);
  opacity: 0;
}
#profile-slide .profile {
  -webkit-transform: translateX(0px);
  opacity: 1;
  z-index: 2;
}
.profile .name {
  letter-spacing: 1px;
}
.profile .name.kurrik {
  letter-spacing: -2px;
}
.profile .twitter {
  font-weight: bold;
}
.profile:nth-child(even) {
  text-align: left;
}
.profile:nth-child(odd) {
  text-align: right;
}
.profile img {
  max-height: 450px;
}
/*******************************************************************************
 * AGENDA
 ******************************************************************************/
#slide-agenda .item span {
  display: inline-block;
  text-align: right;
  font-size: 50px;
  vertical-align: middle;
  padding: 0 50px;
}
#slide-agenda .item img {
  vertical-align: middle;
}
#slide-agenda.current .item {
  -webkit-animation: agenda-slide 10s infinite ease-in-out;
  -webkit-animation-delay: 0;
  -webkit-animation-direction: normal;
  -moz-animation: agenda-slide 10s infinite ease-in-out;
  -moz-animation-delay: 0;
  -moz-animation-direction: normal;
  -moz-animation: agenda-slide 10s infinite ease-in-out;
  -moz-animation-delay: 0;
  -moz-animation-direction: normal;
}
#slide-agenda .item:nth-child(1)  {
  -webkit-animation-delay: 1s;
  -moz-animation-delay: 1s;
}
#slide-agenda .item:nth-child(2)  {
  -webkit-animation-delay: 2s;
  -moz-animation-delay: 2s;
}
#slide-agenda .item:nth-child(3)  {
  -webkit-animation-delay: 3s;
  -moz-animation-delay: 3s;
}
#slide-agenda .item:nth-child(4)  {
  -webkit-animation-delay: 4s;
  -moz-animation-delay: 4s;
}
/*******************************************************************************
 * "DEGREE" SLIDE
 ******************************************************************************/
#slide-degree {
  .display-box;
  .box-orient(vertical);
  .box-align(center);
  .box-pack(stretch);
}
#slide-degree * {
  color: #fff;
  font: 60px Arial;
  text-shadow: 5px 5px 5px #000;
}
#slide-degree header,
#slide-degree footer {
  text-transform: uppercase;
  position: static;
  left: 0;
  font-size: 70px;
  text-align: center;
}
#slide-degree header {
}
#slide-degree footer {
}
#slide-degree section {
  width: 50%;
  .box-flex(1);
  -webkit-mask-image: -webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
  -moz-mask-image: -moz-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
}
#slide-degree .wrapper {
  -webkit-transform: translateY(20%);
  -moz-transform: translateY(20%);
}
#slide-degree.current .wrapper {
  -webkit-animation-name: degree-scroll;
  -webkit-animation-duration: 30s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: 1;
  -moz-animation-name: degree-scroll;
  -moz-animation-duration: 30s;
  -moz-animation-timing-function: linear;
  -moz-animation-iteration-count: 1;
}
#slide-degree ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
#slide-degree p {
  font-size: 40px;
  text-align: center;
}
#slide-degree li {
  margin: 40px 0;
  padding: 0;
  text-indent: -30px;
  padding-left: 30px;
}
/*******************************************************************************
 * REQUESTANIMATIONFRAME
 ******************************************************************************/
#slide-requestanimationframe .pre {
  .display-box();
  .box-orient();
}
#slide-requestanimationframe .pre > * {
  padding: 10px 10px 0 10px;
}
#slide-requestanimationframe pre {
  font-size: 70%;
}
/*******************************************************************************
 * VALUE PROP
 ******************************************************************************/
#slide-value {
  section {
    font: 60px Arial;
    text-align: center;
  }
}
/*******************************************************************************
 * WRAP UP
 ******************************************************************************/
#wrapup img {
  width: 38px;
  height: 38px;
  vertical-align: top;
}
/*******************************************************************************
 * THANKS
 ******************************************************************************/
#thanks a {
  .text-outline(0);
  .text-shadow(none);
  color: black;
}